<div class="tableToolbar">
	<div class="coll-md-8" id="addInput">
		<div class="coll-md-2">
			<input type="text" class='search' placeholder="标题" ng-model="ctrlScope.itemsearch.title">
		</div>
		<div class="coll-md-4 scalenone"  id="searchdate" datahide>
			<div class="coll-md-5" >
				<p class="input-group">
					<input type="text" class="search" placeholder="添加开始时间" uib-datepicker-popup="yyyy-MM-dd"
						   ng-model="ctrlScope.itemsearch.beginDateTimex" is-open="popup1.opened" datepicker-options="dateOptions"/>
						<span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open1()"><i
												class="glyphicon glyphicon-calendar"></i></button>
							          </span>
				</p>
			</div>
			<div class="coll-md-5">
				<p class="input-group inline">
					<input type="text" class="search" placeholder="添加结束时间" uib-datepicker-popup="yyyy-MM-dd"
						   ng-model="ctrlScope.itemsearch.endDateTimex" is-open="popup2.opened" datepicker-options="dateOptions"/>
						<span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open2()"><i
												class="glyphicon glyphicon-calendar"></i></button>
							          </span>
				</p>
			</div>
		</div>
		<div class="coll-md-2">
			<input type="button" class="small-icon search2-icon" value="搜索" ng-click="search()">
			<input type="button" class="small-icon search2" value="搜索">
			<input type="button" class="small-icon reset-icon" reset-icon value="重置" ng-click="reset()">
			<input type="button" class="small-icon reset" value="重置">

			<div class="dropdown-menu-right">
				<input type="button" class="small-icon more-icon" value="更多" title='更多搜索项' id="more-icon" data-toggle="dropdown"
					   aria-haspopup="true" aria-expanded="false">
				<input type="button" class="small-icon more" value="更多">
				<ul class="dropdown-menu" style='margin-left:80px;' aria-labelledby="dropdownMenu2" more-search>
					<li><a href="javascript:;">日期搜索</a></li>
				</ul>
			</div>
		</div>
	</div>
	<div class="coll-md-2">
		<input type="button" class="bttn pos-right"  ng-click="addOrderModal()" value="新建">
	</div>
</div>
<table ui-table="orderParams">
	<thead>
		<tr>
            <th>
                id
            </th>
            <th>
                标题
            </th>
            <th>
                内容
            </th>
            <th>
                添加时间
            </th>
            <th>
                操作
            </th>
        </tr>
	</thead>
	<tbody>
		<tr ng-repeat="item in orderParams.$rows">
			<td>{{item.id}}</td>
			<td>{{item.pushTitle}}</td>
			<td>{{item.pushText}}</td>
			<td>{{item.addtime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
			<td>
				<a  ng-click="modifyModal(item.id)">编辑</a>
				<a  ng-click="sendModal(item.id)">推送</a>
			</td>
		</tr>
	</tbody>
</table>
<modal title="新建" visible="addModal">
	<form class="form-horizontal">
		<div class="form-body">
			<div class="row">
				<div class="col-md-6">
					<div class="form-group">
						<label class="control-label col-md-4">标题：</label>
						<div class="col-md-8">
							<input type="text" class="form-control" ng-model="add.pushTitle" >
						</div>
					</div>
				</div>
				<div class="col-md-12">
					<div class="form-group">
						<label class="control-label col-md-2">内容：</label>
						<div class="col-md-10">
							<textarea ng-model="add.pushText" class="form-control"></textarea>
						</div>
					</div>
				</div>
			</div>
			<div class="buttonArea col-md-12">
				<button type="submit" class="btn blue" ng-click="adoptAdd()">确认</button>
			</div>

		</div>
	</form>
</modal>
<modal title="编辑" visible="detailsModal">
	<form class="form-horizontal">
		<div class="form-body">
			<div class="row">
				<div class="col-md-6">
					<div class="form-group">
						<label class="control-label col-md-4">标题：</label>
						<div class="col-md-8">
							<input type="text" class="form-control" ng-model="list.pushTitle" >
						</div>
					</div>
				</div>
				<div class="col-md-12">
					<div class="form-group">
						<label class="control-label col-md-2">备注：</label>
						<div class="col-md-10">
							<textarea ng-model="list.pushText" class="form-control"></textarea>
						</div>
					</div>
				</div>
				<input type="hidden" ng-model="list.id">
			</div>
			<div class="buttonArea col-md-12">
				<button type="submit" class="btn blue" ng-click="saveSubmit()">保存</button>
			</div>

		</div>
	</form>
</modal>